import request from '@/utils/httpRequest'

export function fetchList(data) {
  return request({
    url: request.adornUrl('/user/user/page'),
    method: 'post',
    data
  })
}



export function addObj(obj) {
  return request({
    url: request.adornUrl('/user/user'),
    method: 'post',
    data: obj
  })
}

export function getObj(id) {
  return request({
    url: request.adornUrl('/user/user/' + id),
    method: 'get'
  })
}

export function delObj(data) {
  return request({
    url: request.adornUrl('/user/user/delete'),
    method: 'post',
    data
  })
}

export function putObj(data) {
  return request({
    url: request.adornUrl('/user/user/update'),
    method: 'post',
    data
  })
}

export function getALLuser(data) {
  return request({
    url: request.adornUrl('/user/user/page'),
    method: 'post',
    data
  })
}

export function searchUser(data) {
  return request({
    url: request.adornUrl('/user/user/searchUsercenter'),
    method: 'post',
    data
  })
}

export function getUserListByNoDeliveryman(data) {
  return request({
    url: request.adornUrl('/user/user/getUserListByNoDeliveryman'),
    method: 'post',
    data
  })
}
